 /**
  * Copyright (C), 2015-2019, 
  * FileName: DateUtil
  * Author:   陈玉翔
  * Date:     2019-08-14 15:12
  * Description: 
  * History:
  */

package com.example.workrecord.util;

 import java.text.DateFormat;
 import java.text.SimpleDateFormat;
 import java.util.Date;

/**
  *@ClassName: DateUtil
  *@Description DateUtil
  *@Author Mr.Bu
  *@Date 2020/4/26 11:18
  *@Version: 1.0
  */
public class DateUtil  {

    public static String  getUnixTime(Long time){
        DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        String sd = dateFormat.format(new Date(Long.parseLong(String.valueOf(time))));      // 时间戳转换成时间
        return sd;
    }
}